package com.demo.crm.security.listener;

import com.demo.crm.security.session.SessionRegistryImplExtend;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * 监听session注销
 *
 * @author tanshuai
 */
public class SessionDestroyListener implements HttpSessionListener {

    public void sessionCreated(HttpSessionEvent httpSessionEvent) {

    }

    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
        SessionRegistryImplExtend.onSessionDestroyed(httpSessionEvent.getSession().getId());
    }
}
